function reloadImages() {
  for(var i = 0, img; img = document.getElementsByName('cam')[i]; i++) {
    img.next = new Image();
    img.next.base = img;
    img.next.onload = function() { this.base.src = this.src; };
    img.next.src = img.src.split('?')[0] + '?' + (new Date().getTime());
  }
}

